Skip to content

Fix long_name escaping in maps.#2

Open
agessaman wants to merge 158 commits intodadecoza:puget-meshfrom
agessaman:main
Open

Fix long_name escaping in maps.#2
agessaman wants to merge 158 commits intodadecoza:puget-meshfrom
agessaman:main

Conversation

@agessaman
Copy link

Found an issue where long_names like "Just Meshin' Around" would break mapping because the apostrophe was not properly escaped.

@agessaman
Copy link
Author

After I shared a link to MeshInfo on Mastodon, I DDoS'd my server with all the page requests. I implemented simply caching using Flask-Caching's simple caching mechanism so that requests on /, graph.html, nodes.html and allnodes.html have a 60 second cache. Seems to help.

…e of MeshData instead of recreating repeatedly; more efficient neighbors.html, more efficient get_nodes().
…SQL queries to include channel filtering, added channel information to telemetry data, and improved UI to display channel details in metrics and chat views. Introduced channel selection in metrics and chattiest nodes sections.
agessaman and others added 30 commits July 23, 2025 19:30
- Replaced direct imports of meshtastic_support in meshinfo_web.py with lazy loading functions.
- Updated template files to use new helper functions for accessing hardware model names and enums.
- Improved memory management by cleaning up large objects after rendering templates.
- Updated the migration script to first check for the existence of the 'channel' column in the meshlog table before attempting to extract channel information from messages.
…ve traceability.

- Implemented error handling for adding channel columns and indexes, ensuring migration robustness.
- Updated telemetry migration to check for existing packet_id values and deduplicate telemetry data by (id, telemetry_time) and (id, packet_id) as needed.
- Added unique constraint on (id, packet_id) in telemetry table, with error handling for existing constraints.
…ved accessibility checks and logging. Added error handling for table access and refined index existence checks to ensure robust migration behavior.
…ndexes.py. Enhanced migration logic by ensuring no unread results interfere with index creation, improving overall migration robustness.
…tion.py. Enhanced migration logic to ensure accessibility of the message_reception table, improving robustness and error handling during database migration.
…n checks. Implemented logic to verify the existence of the message_reception table before adding the new column, improving migration robustness and error handling.
…mproved error handling and accessibility checks. Added logging for table existence and queryability, and implemented fallback logic for column addition to ensure robust migration behavior.
…message_reception and relay_edges tables. Enhanced migration logic to ensure robust column addition and logging for existing columns in traceroute.
…e color based on accent color brightness. Added is_dark function to determine brightness and enhance visual contrast in generated favicons.
…ed get_cached_chat_data to support optional channel filtering, modified chat2 to retrieve and display available channels, and implemented JavaScript for dynamic channel selection. Additionally, improved favicon configuration in config.ini.sample and updated SVG generation logic in generate_favicon.py to utilize new favicon color settings.
…/cache to optimize build times by caching buildx layers, enhancing the efficiency of the Docker image build process.
…issing edges. Added functions to create placeholder nodes and ensure all referenced nodes exist in the graph, improving edge handling and visualization in the frontend.
… Changed boolean checks for is_placeholder to string comparisons for consistency in node handling and conditional logic.
…hen the Shift key is held. Added a visual indicator for Shift key activation to improve user experience during message propagation visualization.
…link node. Implemented JWT authentication for secure access. Enhanced error handling and response formatting. Updated user authentication to support both email and username. Added support for new MT roles.
Fix for unknown hardware models on node detail page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants